#include "Alloy.h"

double Alloy::Eg(const double x) const {
    double temp;
    temp = m_first_com->Eg()*x + m_second_com->Eg()*(1.0-x) + m_Eg_bow*(x)*(1.0 - x);
    return temp;
}

double Alloy::a_lc(const double x) const {
    double temp;
    temp = m_first_com->a_lc()*x + m_second_com->a_lc()*(1.0-x)  + m_a_lc_bow*(x)*(1.0 - x);;
    return temp;

}
double Alloy::delta_so(const double x) const {
    double temp;
    temp = m_first_com->delta_so()*x + m_second_com->delta_so()*(1.0-x)  + m_delta_so_bow*x*(1.0 - x);;
    return temp;

}
double Alloy::vbo(const double x) const {
    double temp;
    temp = m_first_com->vbo()*x + m_second_com->vbo()*(1.0-x)  + m_vbo_bow*x*(1.0 - x);;
    return temp;

}
double Alloy::mass_ef(const double x) const {
    double temp;
    temp = m_first_com->mass_ef()*x + m_second_com->mass_ef()*(1.0-x)  + m_mass_ef_bow*x*(1.0 - x);;
    return temp;

}
double Alloy::ac(const double x) const {
    double temp;
    temp = m_first_com->ac()*x + m_second_com->ac()*(1.0-x)  + m_ac_bow*x*(1.0 - x);;
    return temp;
}
double Alloy::av(const double x) const{
    double temp;
    temp = m_first_com->av()*x + m_second_com->av()*(1.0-x)  + m_av_bow*x*(1.0 - x);;
    return temp;
}
double Alloy::b(const double x) const {
    double temp;
    temp = m_first_com->b()*x + m_second_com->b()*(1.0-x)  + m_b_bow*x*(1.0 - x);;
    return temp;
}

double Alloy::c11(const double x) const{
    double temp;
    temp = m_first_com->c11()*x + m_second_com->c11()*(1.0-x)  + m_c11_bow*x*(1.0 - x);;
    return temp;
}
double Alloy::c12(const double x) const{
    double temp;
    temp = m_first_com->c12()*x + m_second_com->c12()*(1.0-x)  + m_c12_bow*x*(1.0 - x);;
    return temp;
}
